var _ = require("lodash");

// _.drop(array, [n=1])
// 创建一个切片数组，去除array前面的n个元素。（n默认值为1。）

let arr = [1, 2, 3];
console.log(_.drop(arr));
console.log(_.drop(arr, 2));
console.log(_.drop(arr, 5));
console.log(_.drop(arr, 0));

// 如果操作字符串，则会自动转换为数组
let brr = "123";
console.log(_.drop(brr));
// console.log(_.drop(brr, 2));
// console.log(_.drop(brr, 5));
// console.log(_.drop(brr, 0));
